﻿using LibraryManagementSystem.Models;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace LibraryManagementSystem.Services.Interfaces
{
    public interface IBookService
    {
        Task<List<Book>> SearchBooks(string keyword);
        Task<bool> AddBook(Book book);
        Task<bool> UpdateBook(Book book);
        Task<bool> DeleteBook(int bookId);
        Task<bool> BorrowBook(int userId, int bookId);
        Task<bool> ReturnBook(int recordId);
        Task<List<BorrowRecord>> GetUserBorrowRecords(int userId);
    }
}